package com.dollar.juc.dynamicThreadPool.alarm;

public class AlarmConfig {
    /**
     * 异常告警API地址，如果配置了此值就将异常信息告诉配置的API,异常告警由外部系统处理
     * 默认会通过钉钉告警，需要配置钉钉信息
     */
    private String alarmApiUrl;

    /**
     * 告警时间间隔，单位分钟
     */
    private int alarmTimeInterval = 1;

    private Owner owner;

    public AlarmConfig(Owner owner) {
        this.owner = owner;
    }

    public AlarmConfig(int alarmTimeInterval, Owner owner) {
        this.alarmTimeInterval = alarmTimeInterval;
        this.owner = owner;
    }
}
